<%--
  Created by IntelliJ IDEA.
  User: yangwu
  Date: 2021/8/30
  Time: 16:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>主页</title>
    <link rel="stylesheet" href="/statics/css/bootstrap.css" />
  </head>
  <body>
      <div class="container">
          <!--头部-->
          <div class="row" style="height: 100px; background-color: skyblue;">
              <iframe name="head" src="head.jsp" width="100%" height="100%" border="0" scrolling="no"></iframe>
          </div>
          <!--主体-->
          <div class="row" style="height: 450px; background-color: gainsboro;">
              <!--左导航-->
              <div class="col-lg-2" style="padding: 0px 0px; ">
                  <ul class="nav nav-pills nav-stacked" style="width: 100%;">
                      <li role="presentation">
                          <a href="addsale.jsp" target="info" id="addSale">销售</a>
                      </li>
                      <li role="presentation">
                          <a href="/jsp/salelist.jsp" target="info">销售信息查询</a>
                      </li>
                      <li role="presentation">
                          <a href="/jsp/productnum.jsp" target="info">查看库存</a>
                      </li>
                  </ul>
              </div>
              <!--右主体内容-->
              <div class="col-lg-10" style="height: 100%; padding: 0px;" >
                  <iframe name="info" src="welcome.html" width="100%" height="100%" border="0"></iframe>
              </div>
          </div>
          <!--尾部-->
          <div class="row" style="height: 100px; background-color: antiquewhite;"></div>
      </div>
      <!--引入JavaScript的支持-->
      <script src="/statics/js/jquery-2.1.0.min.js"></script>
      <script>
          $(function (){
              if(${error!=null}){
                  $("#addSale").trigger("click");
              }
          })
      </script>
  </body>
</html>
